package com.six.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor   // ← 保证有
@AllArgsConstructor
@TableName("dishes")
public class Dish {
    @TableId(type = IdType.AUTO)
    private Long      id;
    private Integer   categoryId;
    private String    name;
    private String    description;
    private BigDecimal price;
    private String    imageUrl;
    private Integer   stock;
    private Integer   isActive;   // 统一用 Integer
    private LocalDateTime createdAt;
    private Long      storeId;    // 数据库 bigint
}